package com.caxxb.entity;

public class OrderPojo {
    private int order_id;
    private int game_id;
    private Game game=new Game();
    private String conversion_code;

    public String getConversion_code() {
        return conversion_code;
    }

    public void setConversion_code(String conversion_code) {
        this.conversion_code = conversion_code;
    }

    public OrderPojo(int order_id, int game_id, Game game, String conversion_code, String create_time, int user_id, User user, double order_price) {
        this.order_id = order_id;
        this.game_id = game_id;
        this.game = game;
        this.conversion_code = conversion_code;
        this.create_time = create_time;
        this.user_id = user_id;
        this.user = user;
        this.order_price = order_price;
    }

    public String getGame_name(){
        return game.getGame_name();
    }
    public void setGame_name(String game_name){
        game.setGame_name(game_name);
    }
    public String getGame_img(){
        return game.getGame_img();
    }
    public void setGame_img(String game_img){
        game.setGame_img(game_img);
    }


    private String create_time;
    private int user_id;
    private User user = new User();
    public String getUser_name(){
        return user.getUser_name();
    }
    public void setUser_name(String user_name){
        user.setUser_name(user_name);
    }

    @Override
    public String toString() {
        return "OrderPojo{" +
                "order_id=" + order_id +
                ", game_id=" + game_id +
                ", game=" + game +
                ", conversion_code='" + conversion_code + '\'' +
                ", create_time='" + create_time + '\'' +
                ", user_id=" + user_id +
                ", user=" + user +
                ", order_price=" + order_price +
                '}';
    }

    public Game getGame() {

        return game;
    }

    public void setGame(Game game) {

        this.game = game;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private double order_price;


    public OrderPojo() {
    }

    public OrderPojo(int order_id, int game_id, String create_time, int user_id, double order_price) {
        this.order_id = order_id;
        this.game_id = game_id;
        this.create_time = create_time;
        this.user_id = user_id;
        this.order_price = order_price;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getGame_id() {
        return game_id;
    }

    public void setGame_id(int game_id) {
        this.game_id = game_id;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public double getOrder_price() {
        return order_price;
    }

    public void setOrder_price(double order_price) {
        this.order_price = order_price;
    }

}
